package com.example.gw_back_end.domain.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value = "tb_user")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String account;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
    private String username;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer accountType;
    private String telephone;
    private String email;
    private String avatar;
    private Integer status;

}
